<template>
  <div class="screen page-content">
    <screen-header :title="'环境事务系统大数据监测'"></screen-header>
    <div class="body">

      <el-row :gutter="20">
        <el-col :span="6" class="ibox-group">
          <div class="ibox  box1-1">
            <div class="ibox-header">

            </div>
            <div class="ibox-body">
              <el-row class="boxrow-1">
                <el-col class="boxcol-1-1">
                  <div></div>
                </el-col>
                <el-col class="boxcol-1-2"></el-col>
                <el-col class="boxcol-1-3">
                  <div></div>
                </el-col>
              </el-row>
              <el-row class="boxrow-2" style="height: 4vh;">
                <el-col class="boxcol-2-1">
                  <div>
                    <animate-number v-if="pageData['年终未消毒任务总数量']" from="0" :to="pageData['年终未消毒任务总数量']" :duration="1000"
                      easing="easeOutQuad"
                      style="font-size:1.2vw;text-align:center;display:block;font-weight: bold;"></animate-number>
                  </div>
                </el-col>
                <el-col class="boxcol-2-2">
                  <div>
                    <animate-number v-if="pageData['月终未消毒任务总数量']" from="0" :to="pageData['月终未消毒任务总数量']" :duration="1000"
                      easing="easeOutQuad"
                      style="font-size:1.2vw;text-align:center;display:block;font-weight: bold;"></animate-number>
                  </div>
                </el-col>
                <el-col class="boxcol-2-3">
                  <div>
                    <animate-number v-if="pageData['今日未消毒任务总数量']" from="0" :to="pageData['今日未消毒任务总数量']" :duration="1000"
                      easing="easeOutQuad"
                      style="font-size:1.2vw;text-align:center;display:block;font-weight: bold;"></animate-number>
                  </div>

                </el-col>
              </el-row>
              <el-row class="boxrow-3">
                <el-col class="boxcol-3-1">
                  <div>
                    <p class="name">年终未消毒任务<br>总数量</p>
                  </div>
                </el-col>
                <el-col class="boxcol-3-2">
                  <div>
                    <p class="name">月终未消毒任务<br>总数量</p>
                  </div>
                </el-col>
                <el-col class="boxcol-3-3">
                  <div>
                    <p class="name">今日未消毒任务<br>总数量</p>
                  </div>
                </el-col>
              </el-row>
            </div>
          </div>
          <div class="ibox box1-2">
            <div class="ibox-header">
            </div>
            <div class="ibox-body">
              <el-row class="boxrow2-1">
                <el-col class="boxcol2-1-1">
                  <div>
                    <p style="height: 20px;">今日客户满意度</p>
                    <animate-number class="num" from="0" :to="(feedback.todaySatisfiedRate || 100)" :duration="1000"
                      easing="easeOutQuad"
                      style="font-size:1.8vw;text-align:center;font-weight: bold;"></animate-number>
                    <span style="color:#52F1F7;font-size: 0.76vw;">%</span>
                  </div>
                </el-col>
                <el-col class="boxcol2-1-2">
                </el-col>
                <el-col class="boxcol2-1-3">
                  <div>
                    <p style="height: 20px;">今日客户服务件次</p>
                    <animate-number class="num" from="0" :to="(feedback.todayServerCount || 0)" :duration="1000"
                      easing="easeOutQuad"
                      style="font-size:1.8vw;text-align:center;font-weight: bold;"></animate-number>
                  </div>
                </el-col>
              </el-row>
            </div>
          </div>
          <div class="ibox  box1-3">
            <div class="ibox-header">
              <span class="ibox-title">今日环境事务工单量监测</span>
            </div>
            <div class="ibox-body">
              <div class="chart" id="env_chart1_2"></div>
            </div>
          </div>
          <div class="ibox  box1-4">
            <div class="ibox-header">
              <span class="ibox-title">本周环境事务工单类别监测</span>
            </div>
            <div class="ibox-body">
              <div class="chart" id="env_chart1_3"></div>
            </div>
          </div>
        </el-col>
        <el-col :span="12" class="ibox-group">
          <div class="ibox box2-1  " style="background-image: none;">
            <el-row class="boxrow3-1">
              <el-col class="boxcol3-1-1">
                <p style="font-size: 0.76vw;color: #DDF2FF;font-weight: 400;">当<br>年<br>完<br>成</p>
                <p style="font-size: 0.76vw;color: #DDF2FF;font-weight: 400;">专<br>项<br>工<br>作<br>量</p>
                <div style="width: 1vw;"></div>
                <div style="width: 50%;">
                  <animate-number class="num" v-if="pageData['当年完成专项工作量']" from="0" :to="pageData['当年完成专项工作量']"
                    :duration="1000" easing="easeOutQuad"
                    style="font-size:2vw;text-align:center;display:block;font-weight: bold;letter-spacing: 4px;"></animate-number>
                </div>
              </el-col>
              <el-col class="boxcol3-1-2">
              </el-col>
              <el-col class="boxcol3-1-1">
                <p style="font-size: 0.76vw;color: #DDF2FF;font-weight: 400;">当<br>月<br>完<br>成</p>
                <p style="font-size: 0.76vw;color: #DDF2FF;font-weight: 400;">专<br>项<br>工<br>作<br>量</p>
                <div style="width: 1vw;"></div>
                <div style="width: 50%;">
                  <animate-number class="num" v-if="pageData['当月完成专项工作量']" from="0" :to="pageData['当月完成专项工作量']"
                    :duration="1000" easing="easeOutQuad"
                    style="font-size:2vw;text-align:center;display:block;font-weight: bold;letter-spacing: 4px;"></animate-number>
                </div>
              </el-col>
              <el-col class="boxcol3-1-2">
              </el-col>
              <el-col class="boxcol3-1-1">
                <p style="font-size: 0.76vw;color: #DDF2FF;font-weight: 400;">今<br>日<br>完<br>成</p>
                <p style="font-size: 0.76vw;color: #DDF2FF;font-weight: 400;">专<br>项<br>工<br>作<br>量</p>
                <div style="width: 1vw;"></div>
                <div style="width: 50%;">
                  <animate-number class="num" v-if="pageData['今日完成专项工作量']" from="0" :to="pageData['今日完成专项工作量']"
                    :duration="1000" easing="easeOutQuad"
                    style="font-size:2vw;text-align:center;display:block;font-weight: bold;letter-spacing: 4px;"></animate-number>
                </div>
              </el-col>
            </el-row>
          </div>
          <div class="ibox bgh box2-2">
            <div class="ibox-header">
              <span class="ibox-title">当前任务</span>
            </div>
            <div class="ibox-body">
              <div class="statistics-table">
                <table>
                  <tr>
                    <th>名称</th>
                    <th>起始地</th>
                    <th>目的地</th>
                    <th>任务类型</th>
                    <th>发布时间</th>
                    <th>状态</th>
                  </tr>
                  <tr v-for="(item, index) in taskList" :key="index">
                    <td>{{ item.title || "--" }}</td>
                    <td>{{ item.sdepartName || "--" }}</td>
                    <td>{{ item.edepartName || "--" }}</td>
                    <td>{{ item.typeName || "--" }}</td>
                    <td>{{ item.addtime | date("M/d H:m") }}</td>
                    <td>
                      <span v-if="item.status == 0">已发布</span>
                      <span v-else-if="item.status == 1">进行中</span>
                      <span v-else-if="item.status == 2">已完成</span>
                      <span v-else-if="item.status == 3">未开始</span>
                      <span v-else-if="item.status == 4">审核通过</span>
                      <span v-else-if="item.status == 5">审核不通过</span>
                      <span v-else-if="item.status == 6">转让中</span>
                      <span v-else-if="item.status == 7">已转让</span>
                      <span v-else-if="item.status == 8">已评价</span>
                      <span v-else-if="item.status == 9">已作废</span>
                      <span v-else>--</span>
                    </td>
                  </tr>
                </table>
              </div>
            </div>
          </div>
          <div class="ibox bgh box2-3">
            <div class="ibox-header">
              <span class="ibox-title">环境事务工区展示</span>
            </div>
            <div class="ibox-body">
              <div class="sbox-body imgs-box img9">
                <div v-for="index in 18" :key="index" class="img">
                  <img :src="imgConfig.cleaning[index - 1]" v-if="imgConfig.cleaning[index - 1]" alt="">
                </div>
                <div v-for="index in 18" :key="index" class="img">
                  <img :src="imgConfig.cleaning[index - 1]" v-if="imgConfig.cleaning[index - 1]" alt="">
                </div>
              </div>
            </div>
          </div>
        </el-col>
        <el-col :span="6" class="ibox-group">
          <div class="ibox box3-1">
            <div class="ibox-header">
            </div>
            <div class="ibox-body" style="padding-top: 2vh;">
              <el-row class="boxrow-1">
                <el-col class="boxcol4-1-1">
                  <animate-number class="anumber" v-if="pageData['当年环境消杀次数']" from="0" :to="pageData['当年环境消杀次数']"
                    :duration="1000" easing="easeOutQuad"></animate-number>
                </el-col>
                <el-col class="boxcol4-1-2">
                  <animate-number class="anumber" v-if="pageData['当月环境消杀次数']" from="0" :to="pageData['当月环境消杀次数']"
                    :duration="1000" easing="easeOutQuad"></animate-number>

                </el-col>
                <el-col class="boxcol4-1-3">
                  <animate-number class="anumber" v-if="pageData['当日环境消杀次数']" from="0" :to="pageData['当日环境消杀次数']"
                    :duration="1000" easing="easeOutQuad"></animate-number>
                </el-col>
              </el-row>
              <el-row class="boxrow-2">
                <el-col class="boxcol-2-1">
                  <div style="margin-top: 1vh;">
                    <p style="font-size: 0.68vw;">当年环境消杀次数</p>
                  </div>
                </el-col>
                <el-col class="boxcol-2-2">
                  <div style="margin-top: 1vh;">
                    <p style="font-size: 0.68vw;">当月环境消杀次数</p>
                  </div>
                </el-col>
                <el-col class="boxcol-2-3">
                  <div style="margin-top: 1vh;">
                    <p style="font-size: 0.68vw;">今日环境消杀次数</p>
                  </div>
                </el-col>
              </el-row>
            </div>
          </div>
          <div class="ibox bgv box3-2">
            <div class="ibox-header">
              <span class="ibox-title">本月环境事务工单排行（TOP 5）</span>
            </div>
            <div class="ibox-body">
              <div class="ibox-body">
                <div class="group-head"><span>专项组工单量</span></div>
                <div class="statistics-table">
                  <table>
                    <tr>
                      <th>排名</th>
                      <th>姓名</th>
                      <th>平均完成时间</th>
                      <th>工单量</th>
                    </tr>
                    <tr v-for="(item, index) in staffRepairTask['专项组工单量']" :key="index">
                      <td>
                        <span class="rank-icon" :class="['rank' + (index + 1)]" v-if="index < 3"></span>
                        <span v-else>{{ index + 1 }}</span>
                      </td>
                      <td>{{ item.name || "--" }}</td>
                      <td>{{ item.timeDifference | number(0) }} 分钟</td>
                      <td>{{ item.completeRepairTaskCount || "--" }}</td>
                    </tr>
                  </table>
                </div>
              </div>
              <div class="ibox-body">
                <div class="group-head"><span>消杀组工单量</span></div>
                <div class="statistics-table">
                  <table>
                    <tr>
                      <th>排名</th>
                      <th>姓名</th>
                      <th>平均完成时间</th>
                      <th>工单量</th>
                    </tr>
                    <tr v-for="(item, index) in staffRepairTask['消杀组工单量']" :key="index">
                      <td>
                        <span class="rank-icon" :class="['rank' + (index + 1)]" v-if="index < 3"></span>
                        <span v-else>{{ index + 1 }}</span>
                      </td>
                      <td>{{ item.name || "--" }}</td>
                      <td>{{ item.timeDifference | number(0) }} 分钟</td>
                      <td>{{ item.completeRepairTaskCount || "--" }}</td>
                    </tr>
                  </table>
                </div>
              </div>
              <div class="ibox-body">
                <div class="group-head"><span>终末消毒组工单量</span></div>
                <div class="statistics-table">
                  <table>
                    <tr>
                      <th>排名</th>
                      <th>姓名</th>
                      <th>平均完成时间</th>
                      <th>工单量</th>
                    </tr>
                    <tr v-for="(item, index) in staffRepairTask['终末消毒组工单量']" :key="index">
                      <td>
                        <span class="rank-icon" :class="['rank' + (index + 1)]" v-if="index < 3"></span>
                        <span v-else>{{ index + 1 }}</span>
                      </td>
                      <td>{{ item.name || "--" }}</td>
                      <td>{{ item.timeDifference | number(0) }} 分钟</td>
                      <td>{{ item.completeRepairTaskCount || "--" }}</td>
                    </tr>
                  </table>
                </div>
              </div>
            </div>
          </div>

        </el-col>
      </el-row>
    </div>
  </div>
</template>
<script>
import charts from "@/utils/charts";
export default {
  props: {
    banner: {
      type: Object,
      default: () => { return {} },
    },
    current: {
      type: Object,
      default: () => { return {} },
    },
  },
  components: {},
  data() {
    return {
      timer: null,
      pageConfig: {},
      taskList: [],
      staffRepairTask: [],
      pageData: {},
      feedback: {},
    };
  },
  watch: {
    current() {
      if (this.current.id == this.banner.id) {
        setTimeout(this.initData, 200);
        this.timer = setInterval(this.initData, 10000);
      } else {
        clearInterval(this.timer);
      }
    }
  },
  mounted() {
    // this.initData();
  },
  beforeDestroy() {
    clearInterval(this.timer);
  },
  methods: {
    getPageConfig() {
      this.pageConfig = {};
      this.https("get", "/api/Values/ReadData", { "classKey": "jrhjswgdljc" }).then((res) => {
        const data = res.values;
        if (data) {
          this.pageConfig = JSON.parse(data);
        } else {
          this.pageConfig = {};
        }
      });
    },
    getPageData() {
      this.pageData  = {};
      this.https("get", "/api/Values/ReadData", { "classKey": "hjswjzd" }).then((res) => {
        const data = res.values;
        if (data) {
          this.pageData = JSON.parse(data);
        } else {
          this.pageData = {};
        }
      });
    },
    getFeedback() {
      this.feedback = {};
      this.https("get", "/api/Values/GetFeedback", { typeClass: 4 }).then((res) => {
        this.feedback = res || {};
      });
    },
    getTodayEnvironment() {
      // this.https("get", "/api/Values/ReadData", { "classKey": "jrhjswgdljc" }).then((res) => {
      //   const data = res || {};
      //   let chartAxis = JSON.parse(data.values)["chartAxis"];
      //   let seriesDatas = [{
      //     type: "bar",
      //             barWidth: this.func.chartSize(12),
      //     data: JSON.parse(data.values)["seriesDatas"],
      //     itemStyle: {
      //       borderRadius: [0, 100, 100, 0],
      //       color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [
      //         {
      //           offset: 0,
      //           color: '#4E6AE9',
      //         },
      //         {
      //           offset: 1,
      //           color: '#02DDFE',
      //         }
      //       ]),
      //     },
      //     label: {
      //       show: true,
      //       position: "insideRight",
      //       offset: [-5, 0],
      //       color: "#fff",
      //       formatter: (params) => {
      //         return `${params.value || ''}`
      //       },
      //     },
      //   }];
      //   charts.hBlockChart("env_chart1_2", chartAxis, seriesDatas);
      // });
      this.https("get", "/api/Values/GetRepairTaskCurDay", { typeClass: 4 }).then((res) => {
        const data = res || [];
        let chartAxis = [];
        let seriesDatas = [{
          type: "bar",
          barWidth: this.func.chartSize(12),
          data: [],
          itemStyle: {
            borderRadius: [0, 100, 100, 0],
            color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [
              {
                offset: 0,
                color: '#4E6AE9',
              },
              {
                offset: 1,
                color: '#02DDFE',
              }
            ]),
          },
          label: {
            show: true,
            position: "insideRight",
            offset: [-5, 0],
            color: "#fff",
            formatter: (params) => {
              return `${params.value || ''}`
            },
          },
        }];
        data.map((item, index) => {
          chartAxis.push(item.className);
          seriesDatas[0].data.push(item.repairTaskCount);
        })
        charts.hBlockChart("env_chart1_2", chartAxis, seriesDatas);
      });
    },
    getWeekEnvironment() {
      this.https("get", "/api/Values/ReadData", { "classKey": "bzhjswgdljc" }).then((res) => {
        const data = res || {};
        let series = [{
          z: 10,
          name: '今日工单监控',
          type: 'pie',
          radius: ['35%', '80%'],
          center: ['60%', '50%'],
          roseType: 'area',
          label: {
            position: "outside",
            color: "#5BBFFE",
            fontWeight: 600,
            formatter: (params) => {
              return `{val|${params.value}}`
            },
            rich: {
              val: {
                fontSize: this.func.chartSize(12),
                lineHeight: 14,
                color: '#DDF2FF'
              }
            }
          },
          labelLine: {
            // show: false,
            lineStyle: {
              width: 0.5,
              type: "dashed",
            }
          },
          tooltip: {
            show: false,
          },
          data: [
            { value: JSON.parse(data.values)["bczmxd"], name: '病床终末消毒', itemStyle: { color: "#FA5D58" } },
            { value: JSON.parse(data.values)["zxbl"], name: '专项玻璃', itemStyle: { color: "#FDD214" } },
            { value: JSON.parse(data.values)["zxbxg"], name: '专项不锈钢', itemStyle: { color: "#9B73F0" } },
            { value: JSON.parse(data.values)["zxdmqm"], name: '专项地面墙面', itemStyle: { color: "#149BED" } },
            { value: JSON.parse(data.values)["xs"], name: '消杀', itemStyle: { color: "#48D0E0" } },
          ]
        }, {
          name: '',
          type: 'pie',
          radius: ['78%', '80%'],
          center: ['60%', '50%'],
          emphasis: {
            disabled: true,
          },
          tooltip: {
            show: false,
          },
          label: {
            show: false,
          },
          labelLine: {
            show: false,
          },
          data: [
            { value: 1, name: '', itemStyle: { color: "rgba(0,78,230,0.2)" } },
          ]
        },
          , {
          name: '',
          type: 'pie',
          radius: ['34%', '35%'],
          center: ['60%', '50%'],
          emphasis: {
            disabled: true,
          },
          tooltip: {
            show: false,
          },
          label: {
            show: false,
          },
          labelLine: {
            show: false,
          },
          data: [
            { value: 1, name: '', itemStyle: { color: "rgba(0,78,230,0.2)" } },
          ]
        }]
        series[0].data.map(item => {
          let color = {
            colorStops: [{
              offset: 0,
              color: item.itemStyle.color,
            },
            {
              offset: 1,
              color: this.func.hexToRgba(item.itemStyle.color, 0.8),
            },]
          }
          item.itemStyle.color = color;
        })
        charts.pieChart("env_chart1_3", series);
      });
    },
    getTaskList() {
      this.taskList = [];
      this.https("get", "/api/Values/GetTasks", { typeClass: 4 }).then((res) => {
        this.taskList = res || [];
      });
    },
    getStaffRepairTaskCurMonth() {
      this.staffRepairTask = [];
      this.https("get", "/api/Values/ReadData", { "classKey": "byswgdph" }).then((res) => {
        const data = res.values;
        this.staffRepairTask = JSON.parse(data) || [];
      });
    },
    getImgConfigs() {
      this.imgConfig = {
        cleaning: [],
        disinfect: [],
      }
      this.https("get", "/api/Values/ReadData", { "classKey": "image_config" }).then((res) => {
        let data = res.values;
        if (data) {
          data = JSON.parse(data);
        } else {
          data = {};
        }
        let imgs = [...data['日常保洁'] || [], ...data['终末消毒'] || []];
        this.imgConfig.cleaning = this.func.getRandomArrayElements(imgs, 18)
      });
    },
    initData() {
      this.getPageConfig();
      this.getPageData();
      this.getFeedback();
      this.getTodayEnvironment();
      this.getWeekEnvironment();
      this.getTaskList();
      this.getStaffRepairTaskCurMonth();
      this.getImgConfigs();
    },
  },
};
</script>
<style lang="scss" scoped>
.page-content {
  position: relative;

  .box1-1 {
    height: 15vh;

    .name {
      white-space: nowrap;
      font-size: 0.72vw;
    }
  }

  .boxrow-1 {
    display: flex;
    justify-content: space-between;
    padding-top: 1vh;
  }

  .boxcol-1-1 {
    width: 6vw;
    height: 3.8vh;
    background-image: url("../assets/images/ty1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
  }

  .boxcol-1-2 {
    width: 6vw;
    height: 3.8vh;
    background-image: url("../assets/images/ty2.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
  }

  .boxcol-1-3 {
    width: 6vw;
    height: 3.8vh;
    background-image: url("../assets/images/ty3.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
  }

  .boxrow-2 {

    display: flex;
    justify-content: space-between;
  }

  .boxcol-2-1 {
    text-align: center;
    width: 7vw;
  }

  .boxcol-2-2 {
    text-align: center;
    width: 7vw;
  }

  .boxcol-2-3 {
    text-align: center;
    width: 7vw;
  }

  .boxrow-3 {
    display: flex;
    justify-content: space-between;
  }

  .boxcol-3-1 {
    width: 7vw;
    text-align: center;

  }

  .boxcol-3-2 {
    width: 7vw;
    text-align: center;
  }

  .boxcol-3-3 {
    width: 7vw;
    text-align: center;
  }

  .boxrow2-1 {
    height: 13vh;
    display: flex;
    justify-content: space-between;

    align-items: center;
  }

  .boxcol2-1-1 {
    width: 12vw;
    height: 12vh;
    background-image: url("../assets/images/yjjx.png");
    background-size: 12vw;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .boxcol2-1-2 {
    width: 3vw;
    height: 12vh;
    background-image: url("../assets/images/115.png");
    background-repeat: no-repeat;
    background-position: center;
  }

  .boxcol2-1-3 {
    width: 12vw;
    height: 12vh;
    background-image: url("../assets/images/yjjx.png");
    background-size: 12vw;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .boxrow3-1 {

    display: flex;
    justify-content: space-between;
  }

  .boxcol3-1-1 {
    height: 15vh;
    background-image: url("../assets/images/yjjx.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    color: #96d7da;
  }

  .boxcol3-1-2 {
    width: 2vw;
    height: 5vh;

  }

  .boxcol3-1-3 {
    width: 7vw;
    height: 5vh;
    background-image: url("../assets/images/yjjx.png");
    background-repeat: no-repeat;
    background-position: center;
  }

  .boxcol4-1-1 {
    margin-top: -1vh;
    width: 7vw;
    height: 8vh;
    background-image: url("../assets/images/ty21.png");
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
  }

  .boxcol4-1-2 {
    margin-top: -1vh;
    width: 7vw;
    height: 8vh;
    background-image: url("../assets/images/ty22.png");
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
  }

  .boxcol4-1-3 {
    margin-top: -1vh;
    width: 7vw;
    height: 8vh;
    background-image: url("../assets/images/ty23.png");
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
  }

  .box1-2 {
    height: 15vh;
  }

  .box1-3 {
    height: 27vh;
  }

  .box1-4 {
    height: 27vh;
  }

  .box2-1 {
    height: 15vh;
  }

  .box2-2 {
    height: 44vh;
  }

  .box2-3 {
    height: 27vh;

    .imgs-box {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      img {
        // height: 100%;
        width: 100%;
        vertical-align: middle;
      }

      &.img9 {
        .img {
          width: 16%;
          height: 6.7vh;
          background-color: #161A55;
          margin: 0.4vh 0;
          overflow: hidden;
          opacity: 0.9;
        }
      }

      &.img2 {
        .img {
          width: 48%;
          height: 5.7vh;
          background-color: #161A55;
          margin: 0.6vh 0 0;
          overflow: hidden;
        }
      }
    }
  }

  .box3-1 {
    height: 15vh;
  }

  .box3-2 {
    height: 73vh;

    .statistics-table {
      min-height: 18vh;
    }

    .ibox-body {
      padding-bottom: 0;
      padding-top: 0;

      &:first-child {
        padding-top: 1.5vh;
      }
    }
  }

  .anumber {
    font-size: 1.3vw;
    font-weight: bold;
  }

  .num {
    color: #52F1F7;
  }

  .vertical-text {
    line-height: 1.5;
    word-break: break-all;
  }

  .group-head {
    position: relative;
    margin-bottom: 1vh;

    &>span {
      display: inline-block;
      border-radius: 2px;
      font-size: 0.68vw;
      font-weight: bold;
      display: inline-block;
      padding: 0.4vh 0.8vw;
      background-color: #0353A9;
    }
  }
}
</style>